import Vue from 'vue'
import VueRouter from 'vue-router'
// import Login from './components/Login.vue'
import Home from '../pages/Home.vue'

import Login from '../pages/Login.vue'
import Account from '../pages/Account.vue'
import AccountSet from '../pages/account/AccountSet.vue'
import Moni from '../pages/Moni.vue'
import Warn from '../pages/Warn.vue'
import ApiMy from '../pages/api/ApiMy.vue'
import ApiManage from '../pages/api/ApiManage.vue'
import ApiCenter from '../pages/api/ApiCenter.vue'
import ApiApplyMy from '../pages/api/ApiApplyMy.vue'
import HelpCenter from '../pages/help/HelpCenter.vue'
import HelpDetail from '../pages/help/HelpDetail.vue'
import AccountMessage from '../pages/account/AccountMessage.vue'
import AccountMessageDetail from '../pages/account/AccountMessageDetail.vue'
import AccountSetPassword from '../pages/account/AccountSetPassword.vue'
import AccountBack from '../pages/account/AccountBack.vue'
import AccountAbout from '../pages/account/AccountAbout.vue'
import ApiMyCall from '../pages/api/ApiMyCall.vue'
import ApiLike from '../pages/api/ApiLike.vue'
import ApiDetail from '../pages/api/ApiDetail.vue'
import ApiApplyDetail from '../pages/api/ApiApplyDetail.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Login
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/account',
    name: 'Account',
    component: Account
  },
  {
    path: '/accountSet',
    name: 'AccountSet',
    component: AccountSet
  },
  {
    path: '/moni',
    name: 'Moni',
    component: Moni
  },
  {
    path: '/warn',
    name: 'Warn',
    component: Warn
  },
  {
    path: '/apiCenter',
    name: 'apiCenter',
    component: ApiCenter
  },
  {
    path: '/apiMy',
    name: 'apiMy',
    component: ApiMy
  },
  {
    path: '/apiManage',
    name: 'apiManage',
    component: ApiManage
  },
  {
    path: '/apiApplyMy',
    name: 'ApiApplyMy',
    component: ApiApplyMy
  },
  {
    path: '/helpCenter',
    name: 'HelpCenter',
    component: HelpCenter
  },
  {
    path: '/helpDetail',
    name: 'HelpDetail',
    component: HelpDetail
  },
  {
    path: '/accountMessage',
    name: 'AccountMessage',
    component: AccountMessage
  },
  {
    path: '/accountMessageDetail',
    name: 'AccountMessageDetail',
    component: AccountMessageDetail
  },
  {
    path: '/accountSetPassword',
    name: 'AccountSetPassword',
    component: AccountSetPassword
  },
  {
    path: '/accountBack',
    name: 'AccountBack',
    component: AccountBack
  },
  {
    path: '/accountAbout',
    name: 'AccountAbout',
    component: AccountAbout
  },
  {
    path: '/apiMyCall',
    name: 'ApiMyCall',
    component: ApiMyCall
  },
  {
    path: '/apiLike',
    name: 'ApiLike',
    component: ApiLike
  },
  {
    path: '/apiDetail',
    name: 'ApiDetail',
    component: ApiDetail
  },
  {
    path: '/apiApplyDetail',
    name: 'ApiApplyDetail',
    component: ApiApplyDetail
  }
]

// 路由配置
const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
